#pragma once

#include <iostream>
#include <string>
#include <vector>

class HttpRequest
{

public:
    HttpRequest() {}
    ~HttpRequest() {}
    
private:
    std::string _req_line;
    std::vector<std::string> _req_hander;
    std::string _blank_line;
    std::string _req_text;
};

class HttpResponse
{
private:
    std::string _status_line;
    std::vector<std::string> _resp_hander;
    std::string _blank_line;
    std::string _resp_text;
};

class HttpServer
{
public:
    HttpServer() {}
    std::string HandlerHttpRequest(std::string req)
    {
        std::cout << "-------------------------------" << std::endl;
        std::cout << req;

        std::string response = "HTTP/1.0 200 OK\r\n";
        response += "\r\n";
        response += "<html><body><h1>hello world, hello bit!</h1></body></html>";

        return response;
    }
    ~HttpServer() {}

private:
};